package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.PhysicalCardBalanceDto;
import com.shensi.api.admin.domian.station.dto.PhysicalCardDto;
import com.shensi.api.admin.domian.station.dto.PhysicalCardOrderDto;
import com.shensi.api.admin.domian.station.dto.PhysicalCardSecretKeyDto;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface PhysicalCardOrderClient {


    /**实体卡消费*/
    @PostMapping("/physicalCard/order/consumption")
    public AjaxResult consumption(@RequestBody PhysicalCardOrderDto physicalCardOrderDto);

    /**
     * 根据 员工 查询油枪号
     * */
    @GetMapping("/physicalCard/order/getGun")
    public AjaxResult getGun(@RequestParam("userId") Long userId);


}
